#include <iostream>
#include <string>

using namespace std;


class Light {
private:
    int watts;         
    bool indicator;    

public:

    Light(int w) : watts(w), indicator(false) {}
    Light(int w, bool ind) : watts(w), indicator(ind) {}


    void switchOn() {
        indicator = true;
    }

    void switchOff() {
        indicator = false;
    }

    void printInfo() {
        cout << "Watts: " << watts << ", Status: " << (indicator ? "On" : "Off") << endl;
    }

    int getWatts() const {
        return watts;
    }

    bool getIndicator() const {
        return indicator;
    }
};


class TubeLight : public Light {
private:
    int tubeLength;     
    string color;       

public:
 
    TubeLight(int w, int tl, string c) : Light(w, true), tubeLength(tl), color(c) {}

    void printInfo() {

        Light::printInfo();
   
        cout << "Tube Length: " << tubeLength << ", Color: " << color << endl;
    }
};


int main() {

    TubeLight tubeLight(32, 50, "white");
    tubeLight.printInfo();
    return 0;
}
